package net.shopxx.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * Entity - 账目细则
 * 
 * @author frankie
 * @version 3.0
 */

@Entity
@Table(name = "bmw_accounts_item")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "bmw_accounts_item_sequence")
public class AccountsItem extends BaseEntity  {

	private static final long serialVersionUID = 8763431252632967874L;
	
	/** 订单号 **/
	private Long orderId;
	
	/** 会员名 **/
	private String userName;
	
	/** 支付宝 **/
	private String alipay;
	
	/** 店铺Id **/
	private Integer storeId;

	/** 应付邮费 **/
	private Float postage;
	
	/** 应付款 **/
	private Float realPaidFee;

	/** 买家服务费 **/
	private Float buyerServiceCharge;
	
	/** 卖家服务费  **/
	private Float sellerServiceCharge;
	
	/** 状态 **/
	private Integer status;
	
	/** 姓名 **/
	private String name;
	
	/** 地址 **/
	private String address;
	
	/** 新地址 **/
	private String newAddress;
	
	/** 电话 **/
	private String contactNumber;
	
	/** 手机 **/
	private String mobileNumber;
	
	/** 订单创建时间 **/
	private Date orderTime;
	
	/** 订单支付时间 **/
	private Date paidTime;
	
	/** 宝贝标题 **/
	private String goodsTitle;
	
	/** 物流单号 **/
	private String trackingNumber;
	
	/** 买家留言 **/
	private String buyersMessage;
	
	/** 宝贝总数 **/
	private Integer goodsTotal;
	
	/** 是否手机订单 **/
	private Boolean isMobile;
	
	/** 订单类型(淘宝1、刷单2) */
	private Integer type;
	
	/** 操作者 **/
	private String operator;

	
	/**
	 * 获取订单号
	 * 
	 * @return 订单号
	 */
	@Column(nullable = false)
	public Long getOrderId() {
		return orderId;
	}

	/**
	 * 设置订单号
	 * 
	 * @param orderId
	 */
	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	/**
	 * 获取用户名
	 * 
	 * @return 用户名
	 */
	@Column(nullable = false)
	public String getUserName() {
		return userName;
	}

	/**
	 * 设置用户名
	 * 
	 * @param userName
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * 获取支付宝号
	 * 
	 * @return 支付宝号
	 */
	@Column(nullable = false)
	public String getAlipay() {
		return alipay;
	}

	/**
	 * 设置支付宝号
	 * 
	 * @param alipay
	 */
	public void setAlipay(String alipay) {
		this.alipay = alipay;
	}

	/**
	 * 获取店铺Id
	 * 
	 * @return
	 */
	@Column(nullable = false)
	public Integer getStoreId() {
		return storeId;
	}

	/**
	 * 设置店铺Id
	 * 
	 * @param storeId
	 */
	public void setStoreId(Integer storeId) {
		this.storeId = storeId;
	}

	/**
	 * 获取邮费
	 * 
	 * @return 邮费
	 */
	@Column(nullable = false)
	public Float getPostage() {
		return postage;
	}

	/**
	 * 设置邮费
	 * 
	 * @param postage
	 */
	public void setPostage(Float postage) {
		this.postage = postage;
	}

	/**
	 *获取支付金额
	 * 
	 * @return 支付金额
	 */
	@Column(nullable = false)
	public Float getRealPaidFee() {
		return realPaidFee;
	}

	/**
	 * 设置支付金额
	 * 
	 * @param realPaidFee
	 */
	public void setRealPaidFee(Float realPaidFee) {
		this.realPaidFee = realPaidFee;
	}

	/**
	 * 获取买家服务费
	 * 
	 * @return 买家服务费
	 */
	public Float getBuyerServiceCharge() {
		return buyerServiceCharge;
	}

	/**
	 * 设置买家服务费
	 * 
	 * @param buyerServiceCharge
	 */
	public void setBuyerServiceCharge(Float buyerServiceCharge) {
		this.buyerServiceCharge = buyerServiceCharge;
	}

	/**
	 * 获取卖家服务费
	 * 
	 * @return 卖家服务费
	 */
	public Float getSellerServiceCharge() {
		return sellerServiceCharge;
	}

	/**
	 * 设置卖家服务费
	 * 
	 * @param sellerServiceCharge
	 */
	public void setSellerServiceCharge(Float sellerServiceCharge) {
		this.sellerServiceCharge = sellerServiceCharge;
	}

	/**
	 * 获取订单状态
	 * 
	 * @return 订单状态
	 */
	@Column(nullable = false)
	public Integer getStatus() {
		return status;
	}

	/**
	 * 设置订单状态
	 * 
	 * @param status
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * 获取联系人
	 * 
	 * @return
	 */
	@Column(nullable = false)
	public String getName() {
		return name;
	}

	/**
	 * 设置联系人
	 * 
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 获取地址
	 * 
	 * @return 地址
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * 设置地址
	 * 
	 * @param newAddress
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * 获取新地址
	 * 
	 * @return 新地址
	 */
	public String getNewAddress() {
		return newAddress;
	}

	/**
	 * 设置新地址
	 * 
	 * @param newAddress
	 */
	public void setNewAddress(String newAddress) {
		this.newAddress = newAddress;
	}

	/**
	 * 获取联系电话
	 * 
	 * @return 联系电话
	 */
	public String getContactNumber() {
		return contactNumber;
	}

	/**
	 * 设置联系电话
	 * 
	 * @param contactNumber
	 */
	public void setContactNumber(String contactNumber) {
		this.contactNumber = contactNumber;
	}

	/**
	 * 获取手机号码
	 * 
	 * @return 手机号码
	 */
	public String getMobileNumber() {
		return mobileNumber;
	}

	/**
	 * 设置手机号码
	 * 
	 * @param mobileNumber
	 */
	public void setMobileNumber(String mobileNumber) {
		this.mobileNumber = mobileNumber;
	}

	/**
	 * 获取下单时间
	 * 
	 * @return 下单时间
	 */
	@Column(nullable = false)
	public Date getOrderTime() {
		return orderTime;
	}

	/**
	 * 设置下单时间
	 * 
	 * @param orderTime
	 */
	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}

	/**
	 * 获取支付时间
	 * 
	 * @return 支付时间
	 */
	public Date getPaidTime() {
		return paidTime;
	}

	/**
	 * 设置支付时间
	 * 
	 * @param paidTime
	 */
	public void setPaidTime(Date paidTime) {
		this.paidTime = paidTime;
	}

	/**
	 * 获取商品标题
	 * 
	 * @return
	 */
	public String getGoodsTitle() {
		return goodsTitle;
	}

	/**
	 * 设置商品标题
	 * 
	 * @param goodsTitle
	 */
	public void setGoodsTitle(String goodsTitle) {
		this.goodsTitle = goodsTitle;
	}

	/**
	 * 获取运单号码
	 * 
	 * @return 运单号码
	 */
	public String getTrackingNumber() {
		return trackingNumber;
	}

	/**
	 * 设置运单号码
	 * 
	 * @param trackingNumber
	 */
	public void setTrackingNumber(String trackingNumber) {
		this.trackingNumber = trackingNumber;
	}

	/**
	 * 获取买家留言
	 * 
	 * @return 买家留言
	 */
	public String getBuyersMessage() {
		return buyersMessage;
	}

	/**
	 * 设置买家留言
	 * 
	 * @param buyersMessage
	 */
	public void setBuyersMessage(String buyersMessage) {
		this.buyersMessage = buyersMessage;
	}

	/**
	 * 获取商品总数
	 * 
	 * @return 商品总数
	 */
	@Column(nullable = false)
	public Integer getGoodsTotal() {
		return goodsTotal;
	}

	/**
	 * 设置商品总数
	 * 
	 * @param goodsTotal
	 */
	public void setGoodsTotal(Integer goodsTotal) {
		this.goodsTotal = goodsTotal;
	}
	
	/**
	 * 获取是否手机订单
	 * 
	 * @return 是否手机订单
	 */
	@Column(nullable = false)
	public Boolean getIsMobile() {
		return isMobile;
	}

	/**
	 * 设置是否手机订单
	 * 
	 * @param isMobile
	 */
	public void setIsMobile(Boolean isMobile) {
		this.isMobile = isMobile;
	}

	/**
	 * 获取订单类型
	 * 
	 * @return 订单类型
	 */
	@Column(nullable = false)
	public Integer getType() {
		return type;
	}
	
	/**
	 * 设置订单类型
	 * 
	 * @param type
	 */
	public void setType(Integer type) {
		this.type = type;
	}

	/**
	 * 获取操作者
	 * 
	 * @return 操作者
	 */
	@Column(updatable = false, length = 20)
	public String getOperator() {
		return operator;
	}

	/**
	 * 设置操作者
	 * 
	 * @param operator
	 */
	public void setOperator(String operator) {
		this.operator = operator;
	}
	
	
}
